:root {
  /* 球球助手主题色 - 暗色+金橙配色 */
  --primary-gold: #eab308;
  --primary-orange: #f97316;
  --primary-amber: #d97706;

  --secondary-gold: #fbbf24;
  --secondary-orange: #fb923c;
  --secondary-amber: #f59e0b;

  --dark-slate: #0f172a;
  --dark-gray: #111827;
  --dark-black: #000000;

  /* 背景渐变 */
  --bg-primary-gradient: linear-gradient(135deg, #0f172a 0%, #111827 50%, #000000 100%);
  --bg-secondary-gradient: linear-gradient(90deg, #eab308 0%, #f97316 50%, #d97706 100%);
  --bg-card-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);

  /* 玻璃效果 */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-blur: blur(20px);

  /* 阴影 */
  --shadow-primary: 0 10px 30px rgba(234, 179, 8, 0.3);
  --shadow-secondary: 0 10px 30px rgba(249, 115, 22, 0.3);
  --shadow-accent: 0 10px 30px rgba(217, 119, 6, 0.3);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.5);

  /* 动画时长 */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* 圆角 */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
}

/* 全局样式重置 */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  background: var(--bg-primary-gradient);
  color: white;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-gold), var(--primary-orange));
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--secondary-gold), var(--secondary-orange));
}

/* 选择文本样式 */
::selection {
  background: rgba(234, 179, 8, 0.3);
  color: white;
}

/* 球球助手专用组件样式 */
.guess-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-glass);
  transition: all var(--transition-normal);
}

.guess-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-5px);
  box-shadow: var(--shadow-primary);
}

.guess-button-primary {
  background: linear-gradient(90deg, var(--primary-gold), var(--primary-orange));
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.75rem 2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-primary);
}

.guess-button-primary:hover {
  background: linear-gradient(90deg, var(--secondary-gold), var(--secondary-orange));
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(234, 179, 8, 0.4);
}

.guess-button-secondary {
  background: linear-gradient(90deg, var(--primary-orange), var(--primary-amber));
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.75rem 2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-secondary);
}

.guess-button-secondary:hover {
  background: linear-gradient(90deg, var(--secondary-orange), var(--secondary-amber));
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(249, 115, 22, 0.4);
}

.guess-input {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: white;
  width: 100%;
  transition: all var(--transition-normal);
}

.guess-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.guess-input:focus {
  outline: none;
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.3);
  background: rgba(255, 255, 255, 0.15);
}

/* 动画类 */
.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-glow {
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes glow {
  from {
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.5);
  }
  to {
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.8);
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .guess-card {
    margin: 1rem;
    padding: 1.5rem;
  }

  .guess-button-primary,
  .guess-button-secondary {
    width: 100%;
    margin-bottom: 1rem;
  }
}

/* 加载动画 */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-left-color: var(--primary-gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 成功/失败状态颜色 */
.status-success {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.status-danger {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.status-warning {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
}

.status-info {
  color: #eab308;
  background: rgba(234, 179, 8, 0.1);
}
